package us.wili.dev.netty.model.rsp;

import io.swagger.annotations.ApiModelProperty;
import us.wili.dev.netty.model.game.Room;

public class RoomInfoRsp {

    @ApiModelProperty("房主ID")
    private Long ownerID;

    @ApiModelProperty("邀请码")
    private String shareCode;

    public Long getOwnerID() {
        return ownerID;
    }

    public static RoomInfoRsp Initialization(Room room){
        RoomInfoRsp rsp = new RoomInfoRsp();
        rsp.setOwnerID(room.getOwnerID());
        rsp.setShareCode(room.getShareCode());
        return rsp;
    }

    public void setOwnerID(Long ownerID) {
        this.ownerID = ownerID;
    }

    public String getShareCode() {
        return shareCode;
    }

    public void setShareCode(String shareCode) {
        this.shareCode = shareCode;
    }
}
